package com.sbw.springcloud.config.client.demo.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: sangbowei
 * @Description: TODO
 * @Date: Created in  15:06 2018\1\5 0005
 **/
@RestController
@RefreshScope
public class HelloController {

    @Value("${foo}")
    String foo;

    @RequestMapping(value = "/test_foo")
    public String testFoo(){
        return foo;
    }
}
